import java.util.Vector;

public class Population
{
	private Vector<Nucleotide> population;

	// Copie l'ensemble de depart.
	public Population(Population dp)
	{
		this.population = new Vector<Nucleotide>(16);
		for (int i = 0; i < dp.size(); i++)
		{
			this.add(new Nucleotide(dp.get(i)));
		}
	}

	public Population()
	{
		this.population = new Vector<Nucleotide>(16);
	}

	public boolean add(Nucleotide d)
	{
		return population.add(d);
	}

	public void clear()
	{
		population.clear();
	}

	public Nucleotide remove(int index)
	{
		return this.population.remove(index);
	}

	public Nucleotide get(int index)
	{
		return population.get(index);
	}

	public int size()
	{
		return population.size();
	}

	public boolean isEmpty()
	{
		return size() == 0;
	}

	public Nucleotide set(int index, Nucleotide d)
	{
		return this.population.set(index, d);
	}

}
